package com.zlx.mall.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 购物车
 * </p>
 *
 * @author xiatian
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("`sc_trolley`")
public class ScTrolley implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value = "`id`", type = IdType.AUTO)
    private Long id;
    /** 用户ID */
    @TableField("`user_id`")
    private Long userId;
    /** 商品ID */
    @TableField("`goods_id`")
    private Long goodsId;
    /** 源商品ID */
    @TableField("`source_goods_id`")
    private Long sourceGoodsId;
    /** 0-套餐商品，1-升级商品，2-加购商品 */
    @TableField("`type`")
    private Integer type;
    /** 商品名字 */
    @TableField("`goods_name`")
    private String goodsName;
    /** 商品数量 */
    @TableField("`number`")
    private Integer number;
    /** 类目ID */
    @TableField("`category_id`")
    private Long categoryId;
    /** 类目名字 */
    @TableField("`category_name`")
    private String categoryName;
    /** 0-未选中，1-选中 */
    @TableField("`option`")
    private String option;
    /** 删除状态 {0-exist !0-deleted} */
    @TableField("`is_delete`")
    private Long isDelete;
    /** 注册时间 */
    @TableField("`create_timestamp`")
    private LocalDateTime createTimestamp;
    /** 修改时间 */
    @TableField("`update_timestamp`")
    private LocalDateTime updateTimestamp;
    /** 创建人id */
    @TableField("`create_operator_id`")
    private Long createOperatorId;
    /** 修改人id */
    @TableField("`modify_operator_id`")
    private Long modifyOperatorId;

    /** 主键 */
    public static final String ID = "id";
    /** 用户ID */
    public static final String USER_ID = "user_id";
    /** 商品ID */
    public static final String GOODS_ID = "goods_id";
    /** 源商品ID */
    public static final String SOURCE_GOODS_ID = "source_goods_id";
    /** 0-套餐商品，1-升级商品，2-加购商品 */
    public static final String TYPE = "type";
    /** 商品名字 */
    public static final String GOODS_NAME = "goods_name";
    /** 商品数量 */
    public static final String NUMBER = "number";
    /** 类目ID */
    public static final String CATEGORY_ID = "category_id";
    /** 类目名字 */
    public static final String CATEGORY_NAME = "category_name";
    /** 0-未选中，1-选中 */
    public static final String OPTION = "option";
    /** 删除状态 {0-exist !0-deleted} */
    public static final String IS_DELETE = "is_delete";
    /** 注册时间 */
    public static final String CREATE_TIMESTAMP = "create_timestamp";
    /** 修改时间 */
    public static final String UPDATE_TIMESTAMP = "update_timestamp";
    /** 创建人id */
    public static final String CREATE_OPERATOR_ID = "create_operator_id";
    /** 修改人id */
    public static final String MODIFY_OPERATOR_ID = "modify_operator_id";
}
